package com.fingerth.myjsondemo.bean;

import com.fingerth.myjsondemo.tab.PhotoGallery;

import java.util.ArrayList;
import java.util.List;

public class GalleryBean extends BaseBean {
    public List<PoGallery> list;

    public GalleryBean() {
        this.result = 0;
        this.msg = "success";
        this.list = new ArrayList<>();
    }

    public GalleryBean(int result, String msg, List<PoGallery> list) {
        super(result, msg);
        this.list = new ArrayList<>();
    }

    public static class PoGallery {

        public long id;

        public int galleryAuthorId;
        public String gallerySubject;
        public String galleryMessage;
        public long galleryCreateTime;
        public String[] images;
        public int galleryType;

        public int w;
        public int h;

        public PoGallery() {
        }

        public PoGallery(PhotoGallery photo) {
            this.id = photo.id;
            this.galleryAuthorId = photo.galleryAuthorId;
            this.gallerySubject = photo.gallerySubject;
            this.galleryMessage = photo.galleryMessage;
            this.galleryCreateTime = photo.galleryCreateTime;
            this.galleryType = photo.galleryType;
        }
    }

}
